<?php
namespace App\Entities;

use App\Support\Database\Eloquent\UuidModel;

class ActivityPrize extends UuidModel
{
    protected $fillable = [
        'activity_id',
        'surplus',
        'prize_id',
        'alias_name',
        'max_amount',
        'winning_limit',
        'stock_limit',
        'winning_probability',
        'is_recycle',
    ];

    protected $guarded = [
        'awarding_number',
        'not_awarding_number'
    ];

    protected $hidden = [
        'is_recycle',
    ];

    public function prize()
    {
        return $this->belongsTo(Prize::class, 'prize_id');
    }
}
